// 导入axios实例对象request
import request from '@/util/request.js'

// 创建addParamsAPI接口并抛出共享
export const addParamsAPI = (id, attrName, attrSel) => {
  return request({
    method: 'post',
    url: `categories/${id}/attributes`,
    data: {
      attr_name: attrName,
      attr_sel: attrSel
    }
  })
}
